<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="adminTemplate.xhtml">

	<ui:define name="pageIntro">
		<h2>Create an attachment</h2>
		<p class="lftText">Use this form to create an <span>action
		path element</span>.<br />
		<span>Warning:</span> This page should only be used for debugging
		purposes. Customer should not see this page.<br />
		Attachments in weebill are records with file name and location to
		file. File's are suppoed to stored on file systems. Attachments does
		not have reference to anything else but parents has. For example you
		can not move from an attachment to Action, Project etc. but from an
		Action you have have reference to attachments.</p>

	</ui:define>



	<ui:define name="mainForm">
		<h:form id="crtAttachForm">
			<h:panelGrid columns="2">

				<h:outputLabel for="crtAtchName" value="Name"></h:outputLabel>
				<h:inputText id="crtAtchName"
					value="#{createAttachment.attachment.name}"></h:inputText>

				<h:outputLabel for="crtAtchLocation" value="Location"></h:outputLabel>
				<h:inputText id="crtAtchLocation"
					value="#{createAttachment.attachment.location}"></h:inputText>
			</h:panelGrid>
			<h:commandButton id="crtAtchSbt" value="Save"
				action="#{createAttachment.save}"></h:commandButton>
		</h:form>
	</ui:define>
</ui:composition>
